package com.lfnyxy.dao;


import com.lfnyxy.dto.DropVo;
import com.lfnyxy.entity.DepartmentRefEntity;
import com.lfnyxy.query.DepartmentRefQuery;

import java.util.List;

/**
 * Created by ted on 17/5/8.
 */
public interface DepartmentRefDao {
    int CreateItem(DepartmentRefEntity entity);

    int UpdateItem(DepartmentRefEntity entity);

    List<DepartmentRefEntity> QueryPageList(DepartmentRefQuery query);

    List<DepartmentRefEntity> QueryAll();

    List<DropVo> QueryDrop(DepartmentRefQuery query);

    int QueryPageListCount(DepartmentRefQuery query);

    int CheckIsExist(DepartmentRefEntity entity);

    DepartmentRefEntity QueryItem(int Id);

    int DeleteItem(int Id);
}